package com.kn.musicmanagement.mapper;

import com.kn.musicmanagement.controller.Result;
import com.kn.musicmanagement.pojo.Singer;
import com.kn.musicmanagement.pojo.User;
import com.kn.musicmanagement.pojo.singerEx;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SingerMapper {

    /**
     * 查询所有歌手
     *
     * @return
     */
    List<Singer> getAllSinger();

    /**
     * 查询待音乐人申请
     *
     * @return 音乐人申请列表
     */
    List<singerEx> getUnapprovedSinger();

    /**
     * 查询音乐人详情
     *
     * @return 音乐人详情信息
     */
    Singer getSingerDe(String singer_ID);

    User getEmailBySingerID(String singer_ID);

    int ApprovedSinger(String singer_ID);

    int NoExamineSinger(String singer_ID);
}
